<template>
  <el-drawer
  title="我是标题"
  :visible.sync="drawer"
  :with-header="false">
  <el-image
      :src="everyday.imgurl"
      :fit="fit"></el-image>
</el-drawer>

  
</template>
<script>
import { get } from "../request";
import { mapState } from 'vuex';
export default {
  data() {
      return{
          fromciba: "",
          drawer:true
      }
  },
  computed:{
      ...mapState("user",["everyday"])
  },
  created() {
      //this.getDayImg();
  },
  methods: {
    getDayImg() {
      get(
        "https://api.ooopn.com/ciba/api.php",
        (res, err) => {
          console.log(res.data);
          this.fromciba = res.data["imgurl"];
        },
        err => {
          console.log(err);
        }
      );
    }
  }
};
</script>